home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light ROM 1
/
LIGHT-ROM 1 (Amiga Library Services)(1994).iso
/
ffdisks
/
d982.lha
/
HWGRCS
/
HWGpatchP1_2_1.lha
/
patch-2.1
/
src
/
smakefile
< prev
next >
Wrap
Makefile
|
1994-01-27
|
3KB
|
103 lines
# Makefile for GNU patch.
#### Start of system configuration section. ####
srcdir = @srcdir@
#VPATH = @srcdir@
#CC = @CC@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
LIBS = STRT=cres LIB hwgunix.lib
CC_ADD = DEFINE "PRGVERSION=*"$$VER: HWGPATCHp1 2.1 (27.1.94) Changes ©1993,1994 by HWG, For Joan Thuesen*""
CFLAGS = IGNORE=84,85,100,161,304 $(CC_ADD) DEF=_AMIGA=1 DEF=AMIGA=1\
ANSI STRICT ERROR=ALL DEF=_STRICT_ANSI\
NOSTKCHK PPBUF=16384\
DEF=USE_BUILTIN_MATH DEF=__USE_SYSBASE\
OPT
LDFLAGS = LINK MAP
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
# Where to put the manual pages.
mandir = $(prefix)/man/man1
# Extension (not including `.') for the manual page filenames.
manext = 1
#### End of system configuration section. ####
SHELL = /bin/sh
SRCS = backupfile.c getopt.c getopt1.c inp.c patch.c pch.c util.c \
version.c rename.c alloca.c
OBJS = backupfile.o getopt.o getopt1.o inp.o patch.o pch.o util.o \
version.o alloca.o amiga.o
HDRS = EXTERN.h INTERN.h backupfile.h common.h getopt.h \
inp.h patchlevel.h pch.h util.h version.h
MISC = COPYING ChangeLog INSTALL Makefile.in README NEWS \
configure configure.in config.h.in patch.man
DISTFILES = $(MISC) $(SRCS) $(HDRS)
all: patch
.c.o:
$(CC) DEF=HAVE_CONFIG_H $(CPPFLAGS) $(CFLAGS) $<
amiga.o: amiga.c smakefile
$(CC) DEF=HAVE_CONFIG_H $(CPPFLAGS) $(CFLAGS) $<
patch: $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) $(LIBS) TO $@
install: all
-delete /bin/patch all quiet
-rename patch /bin
uninstall:
rm -f $(bindir)/patch $(mandir)/patch.$(manext)
TAGS: $(SRCS)
etags $(SRCS)
clean: cleancmds cleanobjs
cleancmds:
-DELETE FORCE patch core
cleanobjs:
-DELETE FORCE \#?.map \#?.o \#?.lnk
mostlyclean: clean
distclean: clean
rm -f Makefile config.status config.h
realclean: distclean
rm -f TAGS
dist: $(DISTFILES)
echo patch-`sed -e '/PATCH_VERSION/!d' -e 's/[^0-9]*\([0-9a-z.]*\).*/\1/' -e q patchlevel.h` > .fname
rm -rf `cat .fname`
mkdir `cat .fname`
ln $(DISTFILES) `cat .fname`
tar -chf - `cat .fname` | gzip >`cat .fname`.tar.gz
rm -rf `cat .fname` .fname
backupfile.o: config.h backupfile.h
getopt.o getopt1.o: config.h getopt.h
inp.o: config.h common.h inp.h util.h EXTERN.h INTERN.h pch.h
patch.o: config.h common.h inp.h pch.h util.h version.h backupfile.h \
INTERN.h EXTERN.h getopt.h
pch.o: config.h common.h pch.h util.h EXTERN.h INTERN.h
util.o: config.h common.h util.h backupfile.h EXTERN.h INTERN.h
version.o: config.h common.h version.h patchlevel.h util.h \
EXTERN.h INTERN.h